package com.example.alibabanacosdiscoveryclient.service.impl;

import com.example.alibabanacosdiscoveryclient.mapper.StorageMapper;
import com.example.alibabanacosdiscoveryclient.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:guoq
 * @date:2024/11/21
 * @descripion:
 */
@Service
public class StorageServiceImpl implements StorageService {
    @Autowired
    StorageMapper storageMapper;
    @Override
    public void deduct(String commodityCode, int count) {
        storageMapper.deduct(commodityCode,count);
    }
}
